import request from '@/utils/request';
import { Encrypt } from '@/utils/cryptoJS';

/**
 * 系统管理接口
 */
export function useSystemApi() {
    return {
        // 查询部门
        apiDpUserTree: (data) => {
            const value_Encrypt = Encrypt(JSON.stringify(data));
            return request({
                url: '/hcp-system/api/apiDpUserTree',
                method: 'post',
                data: { value: value_Encrypt },
            });
        },

        // 查询用户树
        apiUserTree: (data) => {
            const value_Encrypt = Encrypt(JSON.stringify(data));
            return request({
                url: '/hcp-system/api/apiUserTree',
                method: 'post',
                data: { value: value_Encrypt },
            });
        }
    }

}